package hibernate.roomSystem;

import hibernate.p.Pair;
import hibernate.billStream.Commodity;

public class Room implements Commodity{
	private Long id;
	private String roomNumber;
	private RoomType roomType;
	private RoomState roomState;
	
	public void setId(Long id){
		this.id=id;
	}
	
	public Long getId(){
		return id;
	}
	
	public void setRoomNumber(String roomNum){
		roomNumber=roomNum;
	}
	
	public String getRoomNumber(){
		return roomNumber;
	}
	
	public void setRoomType(RoomType type){
		roomType=type;
	}
	
	public RoomType getRoomType(){
		return roomType;
	}
	
	public void setRoomState(RoomState state){
		roomState=state;
	}
	
	public RoomState getRoomState(){
		return roomState;
	}
	
	public String getName() {
		// TODO Auto-generated method stub
		return roomNumber;
	}

	public Pair getUnitPrice() {
		// TODO Auto-generated method stub
		return roomType.getPricePerDayObj();
	}
	
	public boolean equals(Object obj){
		if(!(obj instanceof Room))
			return false;
		else 
			return this.id.equals(((Room)obj).id);
	}

}
